//
//  XingChengInfTableViewCell.m
//  Trip
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "XingChengInfTableViewCell.h"

@implementation XingChengInfTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.images = [[UIImageView alloc] init];
        [self.contentView addSubview:_images];
        [_images release];
        
        
        
        self.label1 = [[UILabel alloc] init];
        self.label1.textColor = [UIColor whiteColor];
        [self.images addSubview:_label1];
        [_label1 release];
        self.label2 = [[UILabel alloc] init];
        self.label2.textColor = [UIColor whiteColor];
        [self.images addSubview:_label2];
        [_label2 release];
        self.label3 = [[UILabel alloc] init];
        self.label3.textColor = [UIColor whiteColor];
        [self.images addSubview:_label3];
        [_label3 release];
        self.label4 = [[UILabel alloc] init];
//        self.label4.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_label4];
        [_label4 release];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.images.frame = CGRectMake(5, 5, self.frame.size.width - 10, 190);
    
    self.label1.frame = CGRectMake(5, 5, self.frame.size.width / 2, 20);
    self.label2.frame = CGRectMake(5, 30, 30, 15);
    self.label3.frame = CGRectMake(35, 30, 150, 15);
    self.label4.frame = CGRectMake(5, 205, self.frame.size.width - 10, 100);
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
